import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
export const state = () => ({
  web_attr: "",
  my_introduce: "",
  menuItems: []
})
export const mutations = {
  set_web_attr(state, data) {
    state.web_attr = data
  },
  set_my_introduce(state, data) {
    state.my_introduce = data
  },
  set_menuItems(state, data) {
    state.menuItems = data
  },
}

export const actions = {
  nuxtServerInit({ commit }, { app }) {
    commit('set_titles', '9999')
  },
}
